<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="{{$img_url}}index.css" type="text/css" rel="stylesheet" />
{{$xajax_javascript}}
<script language="javascript" type="text/javascript" src="{{$js_url}}function.js"></script>
<div id="mainer">
<table class="table1"><tr>
<td align="left">正在查看 －{{$headline}} <i id="result" class="tips">{{$showtips}}</i></td>
<td align="right" width="200"><a href="{{$filename}}">添加推荐</a> </td>
</tr></table>
<form method="post" action="" enctype="multipart/form-data"><table class="table3">
{{if $Adid}}
<tr>
	<th>修改类别的ID：</th>
    <td><input class="input1" disabled="disabled" value="{{$Adid}}" />
    	<input type="hidden" name="Adid" value="{{$Adid}}" />
    </td>
</tr>
{{/if}}
<tr>
	<th width="100">链接类别：</th>
    <td colspan="3"><select name="CAid" onchange="xajax_advTypeInfo(this.value,'catalog_info');">
    <option value="">== 请选择类别 ==</option>
    {{html_options options=$catalog selected=$CAid}}
    </select>
    <span id="catalog_info" class="redpad">{{$e_CAid}}</span>
    </td>
</tr>
<tr>
	<th>广告标题：</th>
    <td><input class="input6" name="Asubject" value="{{$Asubject}}" />
    	<span class="redpad">{{$e_Asubject}}</span>
    </td>
</tr>
<tr>
	<th>广告链接：</th>
    <td><input class="input6" name="Asiteurl" value="{{$Asiteurl}}" />
    	<span class="redpad">{{$e_Asiteurl}}</span>
    </td>
</tr>
<tr>
	<th>广告描述：</th>
    <td><textarea name="Acontent" rows="5" cols="60">{{$Acontent}}</textarea></td>
</tr>
<tr>
	<th>链接图片：</th>
    <td><input class="input5" type="file" name="imagefile" />
    	{{if $Aadimage}}<input type="checkbox" name="unsetValue[]" value="Aadimage" /> 删除图片{{/if}}
    </td>
</tr>
{{if $Aadimage}}
<input type="hidden" name="Aadimage" value="{{$Aadimage}}" />
<tr>
	<th>已有图片：</th>
    <td><div class="maskimg1"><a href="{{$Aadimage_show}}" target="_blank"><img src="{{$Aadimage_show}}" border="0" /></a></div></td>
</tr>
{{/if}}
<tr><th></th><td colspan="3">
	<input type="submit" value="提交" />
	<input type="button" value="返回" onclick="history.go(-1)" />
</td></tr>
</table></form>
{{include file="footer.html"}}
</div>